﻿@using BonjourQuotation.UI.Models.SeasonModel
@model ManageSeasonsGridRowViewModel
@{
    
}
@using (@Html.BeginForm("AddNewSeason", "Season", FormMethod.Post, new { id = "AddNewSeasonForm" }))
{
     <div id="ErrorMessagesDivPopUp">
        <label for="Validation" id="errorMessageClient" class="errorMessage"></label>
        @if (Model.Message != null)
        {
            @Html.LabelForModel(Model.Message, new { @class = "errorMessage", id = "errorMessageServer" })
        }
    </div>
    @Html.HiddenFor(model => model.SeasonID)
    <div class="pull-right"  style="margin-bottom:15px;">
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-8">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.SeasonCode)</span>
                    @Html.TextBoxFor(model => model.SeasonCode, new { @class = "table_inputs_SmallPadding2 inpputgr form-control SeasonAddElementChange ElementsForValidation MaxLength20 Required" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.IsCurrent)</span>
                    @Html.CheckBoxFor(model => model.IsCurrent, new { @class = "SeasonAddElementChange" })
                </div>
            </div>
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-12">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.SeasonDescription)</span>
                    @Html.TextBoxFor(model => model.SeasonDescription, new { @class = "table_inputs_SmallPadding2 inpputgr form-control SeasonAddElementChange ElementsForValidation MaxLength50" })
                </div>
            </div>
        </div>
            <div class="row form-row">
                <div class="ElementsPaddingRight30 col-lg-6">
                    <div class="input-group">
                        <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.StartDate)</span>
                        @Html.TextBoxFor(model => model.StartDate, new { @class = "table_inputs_SmallPadding2 inpputgr form-control AddSeasonDeteilsDataCalendarFrom SeasonAddElementChange ElementsForValidation Date Required", @style = "cursor:pointer" })
                    </div>
                </div>
                <div class="ElementsPaddingRight30 col-lg-6">
                    <div class="input-group">
                        <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.FinishDate)</span>
                        @Html.TextBoxFor(model => model.FinishDate, new { @class = "table_inputs_SmallPadding2 inpputgr form-control AddSeasonDeteilsDataCalendarTo SeasonAddElementChange ElementsForValidation Date Required", @style = "cursor:pointer" })
                    </div>
                </div>
            </div>
            <div class="SaveCancelDiv">
                <button class="btn14 btn50" type="button" onclick="$('#cboxClose').click()">Cancel</button>
                <button class="btn14 btn50" type="button" id="SeasonAddBtn">Save</button>
            </div>
        </div>
}





